-- GENERATED SPELL FOR [Branch Snapper] --


function spell0_10641(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(3583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10641', 2000, 1)
end

function spell1_10641(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10641', 557, 1)
end

function Sorts_10641(pUnit, Event)
local choix_sorts_10641 = math.random(0, 1)
if choix_sorts_10641 == 0 then
pUnit:RegisterEvent('spell0_10641', 1, 1)
end
if choix_sorts_10641 == 1 then
pUnit:RegisterEvent('spell1_10641', 1, 1)
end
end

function mob10641_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10641', math.random(1500, 3000), 1)
end

function mob10641_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10641_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10641_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10641, 1, 'mob10641_Action')
RegisterUnitEvent(10641, 2, 'mob10641_Leave')
RegisterUnitEvent(10641, 3, 'mob10641_Kill')
RegisterUnitEvent(10641, 4, 'mob10641_Die')
